package com.exmaple.taskreminder;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;

public class ReminderAddEditFragment extends Fragment {
	public static final String DEFAULT_EDIT_FRAGMENT_TAG = "addEditFragmentTag";
	private EditText mTitleText;
	private EditText mTextBody;
	private Button mDateButton;
	private Button mTimeButton;
	private Button mConfirmButton;
	private long mRowId;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Bundle arguments = getArguments();
		if (arguments != null) {
			mRowId = arguments.getLong(ReminderProvider.COLUMN_ROWID);
		}
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saveInstanceState) {
		View v = inflater.inflate(R.layout.reminder_add_edit_activity, container, false);
		mTitleText = (EditText) v.findViewById(R.id.title);
		mTextBody = (EditText) v.findViewById(R.id.body);
		mDateButton = (Button) v.findViewById(R.id.reminder_date);
		mTimeButton = (Button) v.findViewById(R.id.reminder_time);
		mConfirmButton = (Button) v.findViewById(R.id.confirm);
		
		
	}
}
